<extend name="public/base"/>

<block name="content">
      <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Index/index')}">学生管理</a></li>
        <li><a href="{:U('Index/search')}">学生查询</a></li>
        <li><a href="{:U('Index/show')}">班级浏览</a></li>
        <li><a href="{:U('Index/admin')}">后台管理</a></li>
      </ul>
	<!-- 标题栏 -->	  
    <h4 class="center">学生管理</h4>  
  
      <div class="form-inline">
        <form method='post' id="form1" name="form1"  action="{:U('Index/index')}" >
           <div class="form-group">
           <label class="sr-only" for="bj_code">班级</label>
            <select name="bj_code" id="bj_code" class="form-control">
                <option value=""> 所有班级</option>
                <volist name="classlist" id="v">
                <option value="{$v.bj_code}" <if condition="$thisclass eq $v['bj_code']">selected</if> >{$v.bj_name}</option>
                </volist>                           
            </select>
            </div>
           <div class="form-group">
           <label class="item-label" for="st_name">姓名:</label>
           <input type="text" class="form-control" name="st_name" value="{$st_name}">
           </div>
         
           <div class="form-group">
           <button type="submit" class="btn btn-primary">提交</button>
           </div>
      </form> 
      </div>  
    <!-- 数据列表 -->
        <div class="data-table table-striped">
         <table class="table table-bordered">
             <thead>
            <tr class="info ">                
                <th>序号</th>                
                <th>班级</th>                        
                <th>学号</th>
                <th>姓名</th>                
                <th>性别</th>
                <th>修改日期</th>                
                <th>操  作</th>
            </tr>
            </thead>
    
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                <tr>                    
                    <td>{++$key} </td>                    
                    <td><a title="{$vo.bj_code}">{:get_bjname($vo['bj_code'])}</a></td>
                    <td>{$vo.st_code}</td>
                    <td><a href="{:U('Student/index/edit','id='.$vo['id'])}">{$vo.st_name}</a></td>
                    <td>{$vo.sex}</td>      
                    <td><span><if condition="($vo.update_time eq 0)"> &nbsp <else/>
                  {$vo.update_time|date='Y-m-d',###}</if></span></td>                        
                    <td>
                        <a href="{:U('Student/edit','id='.$vo['id'])}" >编辑</a> |
                        
                        <a href="{:U('Student/delete?id='.$vo['id'])}" class="authorize">删除</a>
                        
                        </td>
                </tr>
                </volist>
                <else/>
                <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </tbody>
            </table>
        </div>		


   </block>

